var routes = [
  {
    path: '/index',
    name: '/index',
    component: () => import('../views/Index.vue'),
    children: [
      {
        path: '/index/home',
        name: 'home',
        component: () => import('../views/First/Home.vue')
      },
      {
        path: '/index/bbtuan',
        name: 'bbtuan',
        component: () => import('../views/First/Bbtuan.vue')
      },
      {
        path:'/index/order',
        name:'order',
        component:()=>import('../views/First/Order.vue')
      },
      {
        path:'/index/mine',
        name:'mine',
        component:()=>import('../views/First/Mine.vue')
      },
      {
        path:'/index',
        redirect:'/index/home'
      },
      {
        path:'/:error(.*)',
        component:()=>import('../views/First/Notfound.vue')
      }
    ]
  },
  {
    path:'',
    redirect:'/index'
  },
  {
    path:'/:error(.*)',
    component:()=>import('../views/First/Notfound.vue')
  }
]
export default routes